<%@page import="mvc.model.Irregularidad"%>
<%@page import="javax.swing.text.Document"%>
<%@page import="com.gesturn2.comercio.Punto_de_Vigilancia"%>
<%@page import="java.util.Date"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
-->
<jsp:useBean id="model"	scope="session" class="mvc.model.WebModel"/>
<jsp:useBean id="model2"	scope="session" class="mvc.model.Necesidad_vigi_Dao"/>
<%@page errorPage="PaginaError.jsp" %>
<jsp:useBean id="puntoVigi" scope="session" class="com.gesturn2.comercio.Punto_de_Vigilancia"/>
<jsp:useBean id="servi" scope="session" class="com.gesturn2.comercio.Servicio"/>
<%@page import="java.util.List" %>
<%@page import="java.util.LinkedList"%>

<%
System.out.println("----//INITMODEL----llegada----");
model.init(application); %>
<%
    request= (HttpServletRequest)pageContext.getRequest();
    String BASEURL= request.getContextPath();//Permite ir a la ruta inicial del proyecto.
    String CONTROLLER=BASEURL + "/controller";


   //exception.printStackTrace();
 %>



<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Logistix by Free Css Templates</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="<%=BASEURL%>/default.css" rel="stylesheet" type="text/css" /><link href="<%=BASEURL%>/menus.css" rel="stylesheet" type="text/css" />
<%--<link rel="stylesheet" type="text/css" href="cssConfFormularios.css"/>--%>
<link href="http://cdn.jotfor.ms/jotform.cssgz?3.1.110" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="http://www.jotform.com/css/styles/pastel.css" />
<style type="text/css">
    .form-label{
        width:150px !important;
    }
    .form-label-left{
        width:150px !important;
    }
    .form-line{
        padding:10px;
    }
    .form-label-right{
        width:150px !important;
    }


    .form-all{
        margin:0px auto;
        padding-top:0px;
        width:500px;
        background:url("http://www.jotform.com/images/noises/noise.png") repeat scroll 0% 0% rgb(207, 204, 200);
        color:rgb(82, 75, 58) !important;
        font-family:Tahoma;
        font-size:13px;
    }
</style>

<script src="http://cdn.jotfor.ms/jotform.jgz?3.1.110" type="text/javascript"></script>
<script type="text/javascript">
   JotForm.init(function(){
      $('input_12').hint('ex: myname@example.com');
      JotForm.alterTexts({"required":"Este campo es requerido","alphabetic":"Este campo contienen solo letras","numeric":"Este campo solo acepta valores numericos","alphanumeric":"este campo contiene solo letras y numeros","incompleteFields":"There are incomplete required fields. Please complete them.","uploadFilesize":"File size cannot be bigger than:","confirmClearForm":"Are you sure you want to clear the form","lessThan":"Your score should be less than","email":"Enter a valid e-mail address","uploadExtensions":"You can only upload following files:","pleaseWait":"Please wait..."});
   });
</script>
<script language="javascript" type="text/javascript">
function vermas() {
var eldiv =document.getElementById("vermasdiv");
if(eldiv.style.display=="none"){
eldiv.style.display="block";
}else{
eldiv.style.display="none";
}
}

function vermas2() {
var eldiv =document.getElementById("requerimientos");
if(eldiv.style.display=="none"){
eldiv.style.display="block";
}else{
eldiv.style.display="none";
}
}
</script>
<script  type="text/javascript">





</script>

<link type="text/css" rel="stylesheet" href="dhtmlgoodies_calendar/dhtmlgoodies_calendar/dhtmlgoodies_calendar.css?random=20051112" media="screen"></link>
<script type="text/javascript" src="dhtmlgoodies_calendar/dhtmlgoodies_calendar/dhtmlgoodies_calendar.js?random=20060118"></script>



<script type="text/javascript">
	window.onload = function(){
		new JsDatePick({
			useMode:2,
			target:"inputField",
			dateFormat:"%d-%M-%Y"

		});
	};
</script>
<script  type="text/javascript">
    function mensajeNecesidad(){
    alert("necesidad registrada exitosamente");

}
</script>
<script language="javascript" type="text/javascript">
function mostrar(){
var hora_inicial=document.getElementById("select1");
var hora_final=document.getElementById("select2");
if(parseInt(hora_final.value)<parseInt(hora_inicial.value)){alert("la hora final no puede ser menor que la hora inicial");
return false;
}else if(parseInt(hora_final.value)==parseInt(hora_inicial.value)){alert("la hora final no puede ser menor que la hora inicial");
}else return true;
}
</script>

</head>

<body>
<div id="header">
  <h2>OFRESIENDO UN MEJOR SERVICIO </h2>
  <img src="<%=BASEURL%>/vimarco_cabecera.jpg" /></div>

<!-- end #header -->
<div id="menu">
	<ul id="menu">
		<li><a href="index1.html" accesskey="1" title="">INICIO</a>
		</li>
		<li><a href="#" accesskey="2" title="">CONTRATACION DE SERVICIOS </a>
		<ul>
			<li><a href="index -servicio.html"> nuevo servicio</a></li>
			<li><a href="index -modificarservicio.html">modificar serv</a></li>
			<li><a href="#">consultar serv</a></li>
			<li><a href="index -listarservicio.html">listar serv</a></li>
			<li><a href="index -contratos.html">asignar a cliente</a></li>
		</ul></li>
		<li><a href="" accesskey="3" title="">CLIENTES</a>
		<ul>
			<li><a href="index -clientes.html"> nuevo cliente</a></li>
			<li><a href="index -modificarcliente.html">modificar cliente</a></li>
			<li><a href="index -listarcliente.html">listar cliente</a></li>

		</ul></li>
		<li><a href="#" accesskey="4" title="">PERSONAL DE VIGILANCIA </a>
		<ul>
			<li><a href="#"> vigilante</a>
			<ul>
			<li><a href="index -vigilante.html"> nuevo vigilante</a></li>
			<li><a href="index -modificarvigilante.html">modificar vigilante</a></li>
			<li><a href="index -listarvigilante.html">listar vigilante</a></li>

		</ul></li>
			<li><a href="#">supervisor</a>
			<ul>
			<li><a href="index -supervisor.html"> nuevo supervisor</a></li>
			<li><a href="index -modificarsupervisor.html">modificar supervisor</a></li>
			<li><a href="index -listarsupervisor.html">listar supervisor</a></li>

		</ul></li>
		</ul></li>
		<li><a href="#" accesskey="5" title="">ADMIN</a>
		<ul>
						<li><a href="#">configuraciones</a></li>

		  </ul></li>
		<li><a href="#" accesskey="6" title="">GESTION DE TURNOS</a></li>
	</ul>
</div>
<!-- end #menu -->
<div id="content">
	<div id="posts">
	  <div class="post">


              <form class="jotform-form" action="<%=CONTROLLER%>/Registrar/Nesecidadvigilancia" method="post" name="form_11373615069" id="11373615069" accept-charset="utf-8">
    <input type="hidden" name="formID" value="11373615069" />
    <div class="form-all">
        <ul class="form-section">
            <li id="cid_1" class="form-input-wide">
                <div class="form-header-group">
                    <h2 id="header_1" class="form-header">
                        Necesidad de vigilancia
                    </h2>

                </div>
            </li>
            <li class="form-line" id="id_2">
                <label class="form-label-left" id="label_2" for="input_2"> identificacion </label>
                <div id="cid_2" class="form-input">
                    <input type="text" class="form-textbox" id="input_2" name="id_vigilancia" size="20" />
                </div>
            </li>

            <li class="form-line" id="id_3">
                <label class="form-label-left" id="label_3" for="input_3"> Duracion del servicio </label>
                <div id="cid_3" class="form-input">
                    <select>
                         <option value="24">24 horas</option>
                        <option value="12">12 horas</option>
                        <option value="8">8 horas</option>
                        
                    </select>
                </div>
            </li>
            <li class="form-line" id="id_3">
                <label class="form-label-left" id="label_3" for="input_3"> punto de vigilancia: </label>
                <div id="cid_3" class="form-input">
                    <select name="sw_pv" class="form-dropdown validate[required] form-address-country"  id="input_8_country">
    <option selected value="0"> por favor seleccione </option>
     <%
   List li2 = model.listarPuntos_de_vigilancia();
            for(int i=0;i<li2.size();i++)
            {
                Punto_de_Vigilancia p2=(Punto_de_Vigilancia)li2.get(i);

                %>
<option value="<%=p2.getId()%>" ><%=p2.getNombre()%></option>


<%}%>
</select>
                </div>
            </li>
            <li class="form-line" id="id_9">
                <label class="form-label-left" id="label_9" for="input_9"> Fecha de inicio: </label>
                <div id="cid_9" class="form-input">
                    <input type="text" value="2004/02/02" readonly name="theDate"/><input type="button" value="Cal" onclick="displayCalendar(document.forms[0].theDate,'yyyy/mm/dd',this)" />
                </div>

            </li>

            <li class="form-line" id="id_9">
                <label class="form-label-left" id="label_10" for="input_10"> Fecha final: </label>
                <div id="cid_10" class="form-input">
                    <input type="text" value="2003/02/02" readonly name="theDate2"/><input type="button" value="Cal2" onclick="displayCalendar(document.forms[0].theDate2,'yyyy/mm/dd',this)" />
                </div>

            </li>
            <li class="form-line" id="id_14">
                <label class="form-label-left" id="label_14" for="input_14">
                    Hora de inicio<span class="form-required">*</span>
                </label>
                <div id="cid_14" class="form-input">
                   <select name="Select1"   id="selectini" class="form-textbox validate[required]" >
				<option value="00">00</option>
				<option value="01">01</option>
                <option value="02">02</option>
                <option value="03">03</option>
                <option value="04">04</option>
                <option value="05">05</option>
                <option value="06">06</option>
                <option value="07">07</option>
                <option value="08">08</option>
                <option value="09">09</option>
                <option value="10">10</option>
                <option value="11">11</option>
                <option value="12">12</option>
                <option value="13">13</option>
				<option value="14">14</option>
                <option value="15">15</option>
                <option value="16">16</option>
                <option value="17">17</option>
                <option value="18">18</option>
                <option value="19">19</option>
                <option value="20">20</option>
                <option value="21">21</option>
                <option value="22">22</option>
                <option value="23">23</option>
                <option value="24">24</option>



			</select>
                    
                </div>
            </li>




            <li class="form-line" id="id_14">
                <label class="form-label-left" id="label_14" for="input_14">
                    Hora de Final<span class="form-required">*</span>
                </label>
                <div id="cid_14" class="form-input">
                    <select name="Select2"   id="selectfin" class="form-textbox validate[required]" onchange="mostrar()">
                                <option value=""></option>
				<option value="00">00</option>
				<option value="01">01</option>
                <option value="02">02</option>
                <option value="03">03</option>
                <option value="04">04</option>
                <option value="05">05</option>
                <option value="06">06</option>
                <option value="07">07</option>
                <option value="08">08</option>
                <option value="09">09</option>
                <option value="10">10</option>
                <option value="11">11</option>
                <option value="12">12</option>
                <option value="13">13</option>
				<option value="14">14</option>
                <option value="15">15</option>
                <option value="16">16</option>
                <option value="17">17</option>
                <option value="18">18</option>
                <option value="19">19</option>
                <option value="20">20</option>
                <option value="21">21</option>
                <option value="22">22</option>
                <option value="23">23</option>
                <option value="24">24</option>



			</select>
                        
                </div>
            </li>
            <li class="form-line" id="id_3">
                <label class="form-label-left" id="label_3" for="input_3"> no se prestara el servicio los dias: </label>
                <div id="cid_3" class="form-input">
                    <select name="sw_irregularidad" class="form-dropdown validate[required] form-address-country"  id="input_8_country">
    <option selected value="0"> por favor seleccione </option>
   <%
   List li3 = model2.listarIrregularidad();
            for(int i2=0;i2<li3.size();i2++)
            {
               Irregularidad p3=(Irregularidad)li3.get(i2);

                %>
<option value="<%=p3.getCodigo()%>" ><%=p3.getNombre()%></option>


<%}%>
</select>
                </div>
            </li>
           
             <li class="form-line" id="id_8">
                <div id="cid_8" class="form-input-wide">

                    <div style="margin-left:156px" class="form-buttons-wrapper">
                        <button onclick="mensajeNecesidad()"   id="input_8" type="submit" class="form-submit-button"  >
                            enviar
                        </button>
                    </div>
                </div>
            </li>

            <li style="display:none">
                Should be Empty:
                <input type="text" name="website" value="" />

            </li>

        </ul>
    </div>
    <input type="hidden" id="simple_spc" name="simple_spc" value="11373615069" />
    <script type="text/javascript">
        document.getElementById("si" + "mple" + "_spc").value = "11373615069-11373615069";
    </script>
</form>

   








	  </div>
	</div>
	<!-- end #posts -->
	<div id="links">
		<ul>
			<li>
				<h2>Nuestros Clientes</h2>
				<p>Organizaciones de los sectores Industriales, Aeronáutico, Portuarios, Educativos, Hoteleros, Comerciales, Entretenimiento y Residencial hacen parte de nuestros clientes. Estas son algunas de las importantes empresas a nivel nacional que confirman a Vimarco como Organización número uno en Seguridad Privada Integral, servicios generales y vigilancia.</p>			</li>
		</ul>
	</div>
	<!-- end #links -->
	<div style="clear: both;">&nbsp;</div>
</div>
<!-- end #content -->
<div id="footer">
	<p id="legal">Copyright &copy; 2011 Logistix. Designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a></p>
	<p id="legal"> modificado por estudiantes del tecnologico de comfenalco para la empresa </p>
	 <img src="<%=BASEURL%>/vimarco.jpg" />
</div>
<!-- end #footer -->

</body>
</html>
